package com.javaoopthree;

public class Cart {
    public Menus[] menus=new Menus[10];


    public void showCartMenu(Cart cart){
        System.out.println("菜品编号\t\t\t菜品名称\t\t\t菜品价格\t\t\t点餐数量");
        for (int i = 0; i <cart.menus.length ; i++) {
            if(cart.menus[i] !=null){
                System.out.println(cart.menus[i].mId+"\t\t\t"+cart.menus[i].mName+"\t\t\t"+cart.menus[i].mPrice+"\t\t\t"+cart.menus[i].count);
            }
        }
    }



}
